package com.yh.patterns.prototype.test;

/**
 * @Auther:云尚学Java
 * 具体原型类
 */
public class Citation implements Cloneable{
   /* //三号学生上的姓名
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }*/

    private Student student;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public void show(){
        System.out.println(student.getName()+"同学：在2022学年第一学期中表现优秀，被评为三号学生。特发此状，以资鼓励！");
    }

    @Override
    public Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
